<template>
  <basic-container>
    <avue-crud :page.sync="page"
               :permission="permissionList"
               v-bind="bindVal"
               v-model="form"
               v-on="onEvent">
      <template slot="menuLeft">
        <el-button @click="handleDelete"
                   icon="el-icon-delete"
                   plain
                   size="small"
                   type="danger"
                   v-if="permission.param_delete">删 除
        </el-button>
      </template>
    </avue-crud>
  </basic-container>
</template>

<script>

  export default window.$crudCommon({
    data() {
      return {}
    },
    computed: {
      permissionList() {
        return {
          addBtn: this.vaildData(this.permission.param_add, false),
          viewBtn: this.vaildData(this.permission.param_view, false),
          delBtn: this.vaildData(this.permission.param_delete, false),
          editBtn: this.vaildData(this.permission.param_edit, false)
        };
      }
    },
    methods: {}
  }, {
    //模块路径
    name: 'system/param',
  })
</script>

<style>
</style>
